package web_thms_model

import (
	"time"

	"gorm.io/gorm"
)

const TableNameYtlThms = "ytl_thms"

// YtlThms mapped from table <ytl_thms>
type YtlThms struct {
	ID         int32          `gorm:"column:id;type:INTEGER;primaryKey" json:"id"`
	CustomerID string         `gorm:"column:customer_id;type:text" json:"customer_id"`
	DeviceID   string         `gorm:"column:device_id;type:text" json:"device_id"`
	TtIndex    string         `gorm:"column:tt_index;type:TEXT" json:"tt_index"`
	Wd         string         `gorm:"column:wd;type:TEXT" json:"wd"`
	Sd         string         `gorm:"column:sd;type:TEXT" json:"sd"`
	Flag       string         `gorm:"column:flag;type:TEXT" json:"flag"`
	Volt       string         `gorm:"column:volt;type:TEXT" json:"volt"`
	Dbm        string         `gorm:"column:dbm;type:TEXT" json:"dbm"`
	CreatedBy  string         `gorm:"column:created_by;type:text(20)" json:"created_by"`
	UpdatedBy  string         `gorm:"column:updated_by;type:text(20)" json:"updated_by"`
	CreatedAt  time.Time      `gorm:"column:created_at;type:DATETIME" json:"created_at"`
	UpdatedAt  time.Time      `gorm:"column:updated_at;type:DATETIME" json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"column:deleted_at;type:DATETIME" json:"deleted_at"`
}

// TableName YtlThms's table name
func (*YtlThms) TableName() string {
	return TableNameYtlThms
}
